A Fully Object-Oriented Exception Handling System: Rationale and Smalltalk Implementation
نویسنده
چکیده
This paper motivates and presents the specification and the implementation of an exception handling system for an dynamically typed object-oriented language. A full object-oriented representation of exceptions and handlers, a meta-object protocol to handle using either termination or resumption makes the system powerful as well as extendible and solves various exception handling issues. Three kind of dynamic scope handlers (expression handlers, class handlers and default ones) make it possible to define reusable and fault-tolerant software modules. The implementation of the system is readable and simple to understand because achieved entirely in Objectworks Smalltalk, thanks to the reflective facilities of this language.
منابع مشابه
Improving exception handling with object-oriented programming
The aim of this paper1 is to show and to explain how the object-oriented formalism can improve the expressive power of an exception handling system and how it can simplify its implementation and its utilization. Object-oriented design allows implementors to solve easily many classical exception handling issues such as creating user-defined exceptions, passing arguments from signalers to handler...
متن کاملException Semantics in a Parallel Distributed Object Oriented Environment
Exceptions have been used to provide a mechanism in object oriented programming languages for assuring program safety and robustness. Although the implementation of exceptions is well understood in a non-concurrent language environment , its use is not as well established when dealing with the requirements of a parallel or distributed setting. Distributed and concurrent programming introduces m...
متن کاملThe Green Language Exception System
Exception systems have become popular because they uncouple error detection and handling thus allowing us to produce better software. However, the exception handling systems of many object-oriented languages benefit very little from object-oriented programming. The catch clauses following a try block are isolated pieces of code: they do not belong to classes and cannot be reused. This paper pre...
متن کاملIssues with Exception Handling in Object-Oriented Systems
The goals of exception handling mechanisms are to make programs more reliable and robust. The integration of exception handling mechanisms with object-oriented languages raises some unique issues. The requirements of exception handling often conflict with some of the goals of object-oriented designs, such as supporting design evolution, functional specialization, and abstraction for implementat...
متن کاملA First Implementation of Modular Smalltalk
A "first" implementation of the Modular Smalltalk object-oriented programming language is presented. The implementation includes an object-oriented parser, object-oriented representation for code fragments and an object-oriented C-code generator, all implemented in Smalltalk-80. This implementation validates two of the five design principles of the Modular Smalltalk language and provides a vehi...
متن کامل